local packer = require("packer")
packer.startup({
	function(use)
		-- Packer 可以管理自己本身
		use 'wbthomason/packer.nvim'
		use 'folke/tokyonight.nvim'
		use 'chenxuan520/my-vim-dashboard'
		use 'Yggdroot/LeaderF'
		use 'jiangmiao/auto-pairs'
		use 'voldikss/vim-floaterm'
		use 'tpope/vim-surround'
		use 'tpope/vim-commentary'
		use 'chxuan/prepare-code'
		use 'tpope/vim-repeat'
		use 'tpope/vim-endwise'
		use {'preservim/tagbar',tag = '2.2'}
		use 'junegunn/vim-slash'
		use 'rhysd/clever-f.vim'
		use {'neoclide/coc.nvim', branch = 'release',tag = '0.0.81'}
		use {'vim-python/python-syntax'}
		use {'octol/vim-cpp-enhanced-highlight'}
		use {'chenxuan520/vim-go-highlight'}
		use {'phaazon/hop.nvim',branch = 'v2'}
		use { "kyazdani42/nvim-tree.lua", requires = "kyazdani42/nvim-web-devicons" }
		use { "akinsho/bufferline.nvim", requires = { "kyazdani42/nvim-web-devicons"}}
		use { "nvim-lualine/lualine.nvim", requires = { "kyazdani42/nvim-web-devicons" } }
		use { 'nvim-telescope/telescope.nvim', requires = { "nvim-lua/plenary.nvim" } }
		-- use 'numToStr/Comment.nvim'
		-- use({ "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" })
	end,
	config = {
		git={
			default_url_format = "https://ghproxy.com/https://github.com/%s",
		},
		display = {
			open_fn = function()
				return require("packer.util").float({ border = "single" })
			end,
		},
	}
})
